package ${packageName};

import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;

public interface BaseMapper<T> {
	public T getById(Serializable id);

	public void save(final T t);

	public void saveBatch(final Collection<T> ts);

	public void saveOrUpdate(final T t);

	public void remove(final T t);

	public void removeById(final Serializable id);

	public void removeAll(final Collection<T> ts);

	public List<T> getAll();

	public int count(final T t);

}
